<html><head><title>LoadSound</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">LoadSound()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>LoadSound</b></font>(#Sound, Filename$ [, Flags])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Load a WAV (in PCM format, ADPCM is not supported) or any other format supported by the <a href="../soundplugin/index.html">SoundPlugin library</a> into memory. 
The following functions can be used to enable automatically more sound format: 
<br>
<br>
<a href="../soundplugin/useflacsounddecoder.html">UseFLACSoundDecoder()</a> 
<br>
<a href="../soundplugin/useoggsounddecoder.html">UseOGGSoundDecoder()</a> 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Sound</i></td>
<td width="90%"> 
A number to identify the new sound. <a href="../reference/purebasic_objects.html">#PB_Any</a> can 
be used to auto-generate this number. 

</td></tr>
<tr><td><i>Filename$</i></td>
<td> 
The filename to use to load the sound. 

</td></tr>
<tr><td><i>Flags (optional)</i></td>
<td> 
It can be the following value: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Sound_Streaming</font>: Enable sound streaming playback (only supported for <a href="../soundplugin/useflacsounddecoder.html">FLAC</a> and <a href="../soundplugin/useoggsounddecoder.html">OGG</a>))
</font></pre>

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Nonzero if the sound has been successfully loaded, zero otherwise. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="catchsound.html">CatchSound()</a>, <a href="freesound.html">FreeSound()</a>, <a href="playsound.html">PlaySound()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=issound.html>IsSound()</a> - <a href=index.html>Sound Index</a> - <a href=pausesound.html>PauseSound()</a> ->

</body></html>